package com.sr.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author xiaochi
 * @date 2022/4/30 15:30
 * @desc ApiAuth
 */
@Inherited
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ApiAuth {

    /**
     * 是否需要登录
     * @return
     */
    boolean login() default true;

    /**
     * 权限值
     * @return
     */
    int scope() default 0;
}